A Java secret sanata allocator with some contraints