We currently map each feature to a unique prime number and keep track of which features have been enabled by a user by storing the product of the corresponding primes.
This is not very scalable. The product is stored in a bigint and we will run out of space after a few more features. If possible, we should move to a bitmap implementation which will scale to a
lot more features and also be more time efficient.